#ifndef AUDIOWRITE_H
#define AUDIOWRITE_H

#include <QObject>
#include "world.h"

class AudioWrite : public QObject
{
    Q_OBJECT
public:
    explicit AudioWrite(QObject *parent = 0);
    ~AudioWrite();
signals:

public slots:
    void slot_playAudio(QByteArray bt);
public:
    QAudioOutput * m_audio_output;
    QIODevice * m_buffer_out;//用于存放输出音频的缓冲区
    QAudioFormat format;//音频格式

    //SPEEX 相关全局变量
    SpeexBits bits_dec;
    void *Dec_State;
};

#endif // AUDIOWRITE_H
